using System.Collections.Generic;
using UnityEngine;

public class AllDrivingEvents : MonoBehaviour
{
	public static AllDrivingEvents instance;

	[Header("Springboard Jump")]
	public SpringboardJumpEvent HIGHFLY;

	public SpringboardJumpEvent CRAZYJUMP;

	[Header("Road66 Loop")]
	public LoopEvent DEADLYWHEEL;

	private void Awake()
	{
		instance = this;
	}

	public void CheckAllEvents(DrivingEventInfo newEvent, List<DrivingEventInfo> jumpList)
	{
		if (CRAZYJUMP.IfEvent(newEvent))
		{
			GameplayRewardManager.instance.AddToRewardQueue(CRAZYJUMP);
		}
		else if (HIGHFLY.IfEvent(newEvent))
		{
			GameplayRewardManager.instance.AddToRewardQueue(HIGHFLY);
		}
		if (DEADLYWHEEL.IfEvent(newEvent))
		{
			GameplayRewardManager.instance.AddToRewardQueue(DEADLYWHEEL);
		}
		GameplayRewardManager.instance.TryShowMessage();
	}
}
